import Vue from "vue";
import VueRouter from "vue-router";
import Spinfo from "../views/spmanage/spinfo"
import Ddinfo from "../views/ddmanage/ddinfo"
import Userinfo from "../views/usernamage/userinfo"
import Managerinfo from "../views/manager/managerinfo"
import Addsp from "../views/spmanage/addsp"
import Fenleisp from "../views/spmanage/fenleisp"
import Control from "../views/control"
Vue.use(VueRouter);

const routes = [
  {
    path:"/",
    name:"Control",
    component:Control
  },
  {
    path:'/spinfo',
    name:'Spinfo',
    component:Spinfo
  },
  {
    path:'/addsp',
    name:'Addsp',
    component:Addsp
  },
  {
    path:'/fenleisp',
    name:'Fenleisp',
    component:Fenleisp
  },
  {
    path:'/ddinfo',
    name:'Ddinfo',
    component:Ddinfo
  },
  {
    path:'/userinfo',
    name:'Userinfo',
    component:Userinfo
  },
  {
    path:'/managerinfo',
    name:'Managerinfo',
    component:Managerinfo
  }
  // {
  //   path:'/',
  //   redirect:'/control',
  // },
  
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes
});

export default router;
